package com.qf.service.impl;

import com.qf.entity.MallGoodsBrandEntity;
import com.qf.mapper.BrandMapper;
import com.qf.service.IBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@SuppressWarnings("all")
@Service
public class BrandService implements IBrandService {



    @Autowired
    private BrandMapper mapper;

    @Override
    public List<MallGoodsBrandEntity> findAll(){
        List<MallGoodsBrandEntity> all = mapper.findAll();
        return all;
    }

    @Override
    public List<MallGoodsBrandEntity> findByPage(MallGoodsBrandEntity entity) {
        return mapper.findByPage(entity);
    }

    @Override
    public int delete(Integer id) {
        return mapper.delete(id);
    }

    @Override
    public int add(MallGoodsBrandEntity entity) {
        return mapper.add(entity);
    }

    @Override
    public int  update(MallGoodsBrandEntity entity) {
        return mapper.update(entity);
    }
}
